import request from '@/utils/request'

// 查询列表
export function flowInfo(id, edit = false) {
  return request({
    url: `/flow/flow/${id}`,
    method: 'get',
    params: {
      edit
    }
  })
}

export function myFlowList(query) {
  return request({
    url: '/flow/flow/myList',
    method: 'get',
    params: query
  })
}

export function approve(flowId, data) {
  return request({
    url: `/flow/flow/approve/${flowId}`,
    method: 'put',
    data: data
  })
}
